<?php

class Nhanvien_model extends CI_Model{
    private $tbl='nhanvien';
            function __construct() {
        parent::__construct();
    }
    function login($username,$password) {
        $DB=$this->load->database('khachhang', TRUE);
        return $DB->get_where($this->tbl,array('MSNV'=>$DB->escape($username),'PASSWORD'=>$DB->escape($password)));
    }
}
